Component({
  properties: {
    address: {
      type: Array,
      value: [],
      observer(newVal, oldVal, changedPath) {
        if (newVal.length > 0) {
        }
      }
    }
  },
  data: {
    // hide: false
  },
  methods: {
    addAddress() {
      const type = '-2'
      wx.navigateTo({
        url: '/sub_service/pages/address-edit/index?type=' + type
      })
    },

    selectedAddress(e) {
      const item = e.currentTarget.dataset.item
      this.triggerEvent('selectedAddress', {item})
    }
  }
});
